import App from './App'
import uviewPlus from '@/uni_modules/uview-plus'
import router from './utils/router'
uni.$showMsg = function(title = '数据加载失败！', icon = 'none', duration = 1500, mask = true) {
	uni.showToast({
		title,
		icon,
		duration,
		mask,
	})
}

import {
	createSSRApp
} from 'vue'
import * as Pinia from 'pinia';

export function createApp() {
	const app = createSSRApp(App)
	app.use(Pinia.createPinia());
	app.use(uviewPlus)
	app.config.globalProperties.$path = router
	app.config.globalProperties.$https = 'https://wyxny.19w.top'
	app.config.globalProperties.$img = 'https://wyxny.19w.top/img'
	return {
		app,
		Pinia
	}
}